#include "MsgQueue.hpp"
#include "ChainOfResponsibility.hpp"

int main()
{
    std::string msg;
    MsgQueueServer mq;

    HandlerEntry he;
    he.EnableHandler(true, true, true);

    while(true)
    {
        mq.RecvMessage(&msg, CLIENT);
        std::cout << "get message: " << msg << std::endl;
        if(msg == "q") break;
        he.Run(msg);
    }
    return 0;
}